import os
import re

stream = os.popen('query user');

g_num = 10
while True:
    l = stream.readline()
    if l:
        l = re.split(" +", l)
        if l[2] is int and l[4] > 10:
            print(l)
        for a in l:
            print(a)
    else:
        break

